from django.conf.urls.defaults import *
from django.contrib import admin
import settings

handler404 = 'slainte.views.page_not_found'

admin.autodiscover()

urlpatterns = patterns('',
    (r'^media/(.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
    url(r'^admin_tools/', include('admin_tools.urls')),
    (r'^js/(?P<path>.*)$', 'django.views.static.serve', {'document_root': 'templates/js'}),
    url(r'^admin/', include(admin.site.urls)),
    (r'contato', 'slainte.views.contato'),
    (r'drsami/$', 'slainte.views.todosdrsami'),
    (r'drsami/(?P<slugdoenca>[\w_-]+)/$', 'slainte.views.drsami'),
    (r'^noticia/(?P<slugnoticia>[\w_-]+)/$', 'slainte.views.noticiainterna'),
    (r'^$', 'slainte.views.homepage'),
    (r'busca','slainte.views.busca'),
    (r'parceiro/$', 'slainte.views.todososparceiros'),
    (r'parceiro/(?P<slugparceiro>[\w_-]+)/$', 'slainte.views.parceiro'),
    (r'zoiudo/$', 'slainte.views.todasasgalerias'),
    (r'zoiudofotos/(?P<sluggaleria>[\w_-]+)/$', 'slainte.views.galerias'),
    (r'revista/$', 'slainte.views.revista'),
    (r'como-ajudar/$', 'slainte.views.comoajudar'),
    (r'quem-somos/$', 'slainte.views.quemsomos'),
    (r'ultimas/$', 'slainte.views.ultimas'),

)
